package com.dmw.dao;

import com.dmw.entity.DmUser;
import com.dmw.vo.userInfoPageVO.ReturnUserInfoTokenVO;
import com.dmw.vo.userLoginVO.PasswordLoginVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 用户表(DmUser)表数据库访问层
 *
 * @author makejava
 * @since 2021-03-19 00:32:01
 */
public interface DmUserDao {


    void addImg(Map<String, Object> map) throws  Exception;

    Long checkId(String phone) throws Exception;

    int checkEmail(String phone) throws Exception;

    void register(Map<String, Object> map) throws Exception;

    List<PasswordLoginVO> login(Map<String, Object> map) throws Exception;

    List<ReturnUserInfoTokenVO> queryUserInfoByToken (Long userId) throws Exception;

    void modifyUserInfo(Map<String, Object> map) throws Exception;
}

